package com.toolsder.demo.spring.security.jwt.entity;

import com.toolsder.demo.spring.security.jwt.entity.database.Role;
import lombok.Data;

/**
 * created by 猴子请来的逗比 On 2020/8/25
 *
 * @author by 猴子请来的逗比
 */

@Data
public class RoleVO {
    private static final long serialVersionUID = -5565064011930730872L;


    private String id;

    /**
     * 角色代码
     */
    private String roleCode;

    /**
     * 角色名称
     */
    private String roleName;

    /**
     * 描述
     */
    private String descpt;

    public RoleVO(Role role) {
        this.id = String.valueOf(role.getId());
        this.roleCode = role.getRoleCode();
        this.roleName = role.getRoleName();
        this.descpt = role.getDescpt();
    }
}
